Microsoft DirectX 8.1 (C++)

NAME

Generates a debug-only string.

Syntax

NAME(
    strLiteral
);

Parameters

strLiteral

Text string.

Remarks

In debug builds, this macro is equivalent to the TEXT macro. In retail builds, it resolves to (TCHAR*) NULL. This macro is useful when declaring the name of an object that derives from the CBaseObject class.

Example

pObject = new CBaseObject(NAME("My Object"));

See Also